﻿@using Wicresoft.UnifyShow.Business;
@{
    var listSevers = (List<DeviceAndAlertModel>)ViewData["listServers"];
    var listMiddleWares = (List<DeviceAndAlertModel>)ViewData["listMiddleWares"];
    var listSQLServers = (List<DeviceAndAlertModel>)ViewData["listSQLServers"];
}
<input type="hidden" value="@ViewData["ServiceID"]" id="serviceID"/>
<div class="tab_../../Content" id="tab1">
    <!--**************************************************************************************************************************************************-->
    <div class="index_lr index_lr_tab">
        <ul>
            <li class="index_lmr4">
                <div class="index_lrA_title ui-icons">
                    <h3>
                        系统描述</h3>
                </div>
                <div class="index_pt_bg">
                    <table width="100%" height="160" border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr valign="top">
                                <td>
                                    供应商:<b>@ViewData["bSystemVendorInfo"]</b>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </li>
            <li class="index_lmr4">
                <div class="index_lrA_title ui-icons">
                    <h3>
                        服务器状态</h3>
                </div>
                <div class="index_pt_bg scroll3">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                            @foreach (var item in listSevers)
                            { 
                                <tr valign="top">
                                    <td>
                                        <a class="showPerformanceHistory" href="#@item.ID" data-deviceID="@item.ID">@item.Identify</a>
                                    </td>
                                    @if (item.OpenCount > 0)
                                    {
                                        <td>
                                            <input type="button" value="" class="showRelatedAlert" data-deviceID="@item.ID" />
                                        </td>
                                    }
                                    else
                                    {
                                        <td>
                                            <img src="../../Content/images/normal.png" width="18" height="18" />
                                        </td>
                                    }
                                </tr>
                            }
                            @*                            <td>
                                <img src="../../../../Content/images/second_B_1.jpg" alt="服务器列表" />
                            </td>*@
                        </tbody>
                    </table>
                </div>
            </li>
            <li class="index_lmr4">
                <div class="index_lrA_title ui-icons">
                    <h3>
                        数据库状态</h3>
                </div>
                <div class="index_pt_bg scroll3">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                            @foreach (var item in listSQLServers)
                            { 
                                <tr valign="top">
                                    <td>
                                        <a class="showPerformanceHistory" href="#@item.ID" data-deviceID="@item.ID">@item.Identify</a>
                                    </td>
                                    @if (item.OpenCount > 0)
                                    {
                                        <td>
                                            <input type="button" value="" class="showRelatedAlert" data-deviceID="@item.ID" />
                                        </td>
                                    }
                                    else
                                    {
                                        <td>
                                            <img src="../../Content/images/normal.png" width="18" height="18" />
                                        </td>
                                    }
                                </tr>
                            }
                        </tbody>
                    </table>
                </div>
            </li>
            <li class="index_lmr4">
                <div class="index_lrA_title ui-icons">
                    <h3>
                        中间件状态</h3>
                </div>
                <div class="index_pt_bg scroll3">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                            @foreach (var item in listMiddleWares)
                            { 
                                <tr valign="top">
                                    <td>
                                        <a class="showPerformanceHistory" href="#@item.ID" data-deviceID="@item.ID">@item.Identify</a>
                                    </td>
                                    @if (item.OpenCount > 0)
                                    {
                                        <td>
                                            <input type="button" value="" class="showRelatedAlert" data-deviceID="@item.ID" />
                                        </td>
                                    }
                                    else
                                    {
                                        <td>
                                            <img src="../../Content/images/normal.png" width="18" height="18" />
                                        </td>
                                    }
                                </tr>
                            }
                        </tbody>
                    </table>
                </div>
            </li>
        </ul>
    </div>
    <div class="clear">
    </div>
    <!--^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-->
    <div class="index_lr index_lr_tab">
        <ul>
            <li class="index_lr2_M">
                <div class="index_lrA_title ui-icons">
                    <h3>
                        告警事件</h3>
                </div>
                <div class="index_pt_bg" id="alertTable">
                    @*<table width="100%" height="140" border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr>
                                <td>
                                    <img src="../../Content/images/second_B_4.jpg" alt="告警事件" />
                                </td>
                                <td>
                                    <input class="Button1 ui-icons" id="" title="全部告警刷新" value="全部告警刷新" type="button" />
                                </td>
                            </tr>
                        </tbody>
                    </table>*@
                </div>
            </li>
        </ul>
    </div>
    <div class="clear">
    </div>
    <!--^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-->
    <div class="index_lr index_lr_tab">
        <ul>
            <li class="index_lr2_M">
                <div class="index_lrA_title ui-icons">
                    <h3>
                        工单事件</h3>
                </div>
                <div class="index_pt_bg" id="incidentTable">
                    @*                    <table width="100%" height="140" border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr>
                                <td>
                                    <img src="../../Content/images/second_B_4.jpg" alt="工单事件" />
                                </td>
                                <td>
                                    <input class="Button1 ui-icons" id="Button1" title="全部工单刷新" value="全部工单刷新" type="button" />
                                </td>
                            </tr>
                        </tbody>
                    </table>*@
                </div>
            </li>
        </ul>
    </div>
    <div class="clear">
    </div>
